home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 3⁄30⁄90 / 0995-TPopup Question ?-Mar90 < prev    next >
Encoding:
Text File  |  1990-03-30  |  1.9 KB  |  78 lines  |  [TEXT/GEOL]

  1. Item    9189183                         28-March-90        21:16PST
  2.  
  3. From:   BRAINCHILD                      Brainchild, E Corbett, S Rome,PRT
  4.  
  5. To:     MACDTS                          Macintosh Developer Tech. Supt.
  6.  
  7. cc:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub:    TPopup Question ?
  10.  
  11.  
  12. Hi !
  13.  
  14. Two quick questions about Popups...
  15.  
  16. In trying to track down a solution to a minor problem I'm having with TPopups
  17. in a TDialogView, I came across the following archived link:
  18.  
  19. -----------------------
  20. Item forwarded  by  A33          to A34
  21. Item    9749978                         31-Oct-89        22:33
  22. From:   WILSON6                         Wilson, Dave-Personal Concepts,VCA
  23. To:     NORVELL.J                       Norvell, Joel
  24. cc:     MACAPP.TECH$                    MacApp Technical
  25. Sub:    Popup menus
  26.  
  27. Joel,
  28. I don't know if this is the problem, but remember that TPopup's should use
  29. 'MENU' resources numbered from 64 - 127.  Popup's should not contain commands,
  30. and should therefore not use 'cmnu' resources.  DoMenuCommand will not be sent.
  31.  
  32. Dave
  33. -----------------------
  34.  
  35. DemoDialogs.r, on the other hand, contains the following snippet that works
  36. fine:
  37.  
  38. -----------------------
  39. #define kTestPopup  235
  40.  
  41. resource 'cmnu' (kTestPopup) {
  42.    kTestPopup, textMenuProc, allEnabled,   enabled,"Popup:",
  43.    {
  44.       "Item 1",    noIcon, "", "", plain, nocommand;
  45.     ...
  46.       "Item 8",    noIcon, "", "", plain, nocommand
  47.    }};
  48. -----------------------
  49.  
  50. and this is the model that I used for my own popups.  Is this a problem ? A
  51. lurking crash, perhaps ?
  52.  
  53.  
  54.  
  55. 2)  I'm trying to get a disabled separator line to appear in one of my popups.
  56. If I use
  57.              "-", noIcon, noKey,   noMark, plain, nocommand;
  58. then I get the separator line, but it's not disabled.  If I use
  59.              "(-", noIcon, noKey,  noMark, plain, nocommand;
  60. as per Inside Macintosh, I get a menu item that is literally "(-".
  61. Any hints ?
  62.  
  63.  
  64. Thanks,
  65.  
  66. Sean Rome
  67. Brainchild
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.